Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties / Working With Track Time


GetTrackDuration

The GetTrackDuration function returns the duration of a track. The duration corresponds to the ending time of the track in the movie's time coordinate system (remember that all tracks start at movie time 0).

pascal TimeValue GetTrackDuration (Track theTrack);
theTrack
Specifies the track for this operation. Your application obtains this track identifier from such Movie Toolbox functions as NewMovieTrack and GetMovieTrack (described on page 2-136 and page 2-188, respectively).
DESCRIPTION
The GetTrackDuration function returns a time value. This time value indicates the track's duration, and it is expressed in the time scale of the movie that contains the track.

ERROR CODES
invalidTrack-2009This track is corrupted or invalid

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996